|A visual development environment typically allows a programmer to design forms that become the user interface when the program runs.|8355|1995|1425|2670||0|0|0|0|
|For example, suppose we are creating a program to compare the prices of two pizzas. The form we use as the basis for the pizza program might contain a title ...|6460|2370|1755|2910||0|0|1|0|
|We can also add text boxes that can be used for data entry when the program runs. For example, a text box can be used to collect the price of a pizza.|3055|5610|1695|2505||0|0|1|0|
|Every object on the form has a set of properties. To see and change the properties for an object, we can use the Properties list.|4680|4480|1485|2505||0|0|3|0|
|This text box is used as a variable to hold the price of the first pizza. We can change the name of this variable so its name is associated with its purpose.|4925|2280|1365|3150||0|0|0|0|
|Now the form contains text boxes that can be used to collect the prices and sizes of two pizzas. What about the pizza shapes?|4410|5185|1365|2865||0|0|3|0|
|Instead of asking users to type in the shapes, we can design the program so that they choose the shape by using radio buttons. Radio buttons are controls that allow users to select one option or another.|3100|2625|1785|3015||0|0|1|0|
|Now the button has a label that describes its purpose. The next step in the programming process is to attach program code to the button. The code will tell the computer what to do when users click the button.|2700|3880|1350|4365||0|0|3|1|
|The programming environment has already started a module called BestDeal_Click with code needed for the button click event.|5130|5830|1170|2955||0|0|3|0|
|The programmer has to add code that specifies what the program does when the button is clicked. For the pizza program, the code calculates the price per square inch for each pizza and then compares these prices to determine the best deal.|8460|3005|1875|3465||0|0|4|0|